package com.lbiuse.wx;

import com.lbiuse.wx.bean.AccessToken;
import com.lbiuse.wx.bean.JSAPITicket;

public class WechatCacheManager {

	public static WechatCache cache = new DefaultWechatCache();

	public static AccessToken getAccessToken(String appId) {
		return cache.getAccessToken(appId);
	}

	public static void cacheAccessToken(String appId, AccessToken accessToken) {
		cache.cacheAccessToken(appId, accessToken);
	}

	public static JSAPITicket getJSAPITicket(String appId) {
		return cache.getJSAPITicket(appId);
	}

	public static void cacheJSAPITicket(String appId, JSAPITicket ticket) {
		cache.cacheJSAPITicket(appId, ticket);
	}

}
